{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Windows-10-10.0.22000-SP0\n",
      "10.0.22000\n",
      "('64bit', 'WindowsPE')\n",
      "AMD64\n",
      "ASUS-i9-12900KF\n",
      "Intel64 Family 6 Model 151 Stepping 2, GenuineIntel\n",
      "uname_result(system='Windows', node='ASUS-i9-12900KF', release='10', version='10.0.22000', machine='AMD64')\n"
     ]
    }
   ],
   "source": [
    "# platform 模块\n",
    "#\n",
    "import platform\n",
    "\n",
    "print(platform.platform())      # 操作系统名称\n",
    "print(platform.version())       # 操作系统版本\n",
    "print(platform.architecture())  # 计算机架构\n",
    "print(platform.machine())       # 计算机类型\n",
    "print(platform.node())          # 计算机的网络名称\n",
    "print(platform.processor())     # 计算机处理器信息\n",
    "print(platform.uname())         # 包含上面所有的信息汇总\n"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.10.7"
  },
  "orig_nbformat": 4,
  "vscode": {
   "interpreter": {
    "hash": "60d0b561bcf179bd0cd76361af4313e00281c3c5daca1903769e6cc3dd82b37c"
   }
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
